/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.agi.util.sound;

import javax.sound.sampled.*;

/**
 *
 * @author Renato
 */
public class InputMixer extends BuscadorLine<TargetDataLine> {
    private AudioFormat audioFormat;
    public InputMixer(InputMixerConfig config){
        audioFormat=new AudioFormat(config.getSampleRate(),config.getSampleSizeInBits(),config.getChannels(),config.getSigned(),config.getBigEndian());        
    }


    
    public void setAudioFormat(AudioFormat audioFormat){
        this.audioFormat=audioFormat;
    }
    
    @Override
    public AudioFormat getAudioFormat(){
        return audioFormat;
    }

    @Override
    protected Class<TargetDataLine> getClassLine() {
        return TargetDataLine.class;
    }
    
    
    
    
}
